package Dome2;

import java.util.ArrayList;

public class Text2 {
    public static void main(String[] args) {
        ArrayList<Integer> arraylist = new ArrayList<>();
        arraylist.add(-1);
        arraylist.add(100);
        arraylist.add(200);
        ArrayList<Number> arrayList2 = new ArrayList<>(arraylist);
        arrayList2.add(-100);
        System.out.println(arrayList2);
    }
}
